package com.otupia.acs.spring.dao;

import java.util.Locale;
import java.util.ResourceBundle;

import org.apache.log4j.Logger;

public class SQLPool
{
	public ResourceBundle SQLResourceBundle;
	
	private static Logger logger = Logger.getLogger(SQLPool.class);

	public void setSQLResourceBundle(String resourceBundle_path)
	{
		SQLResourceBundle = ResourceBundle.getBundle(resourceBundle_path,
				Locale.getDefault());
		System.out.println("SQLResourceBundle  " + SQLResourceBundle);
		
		logger.info("exiting function BlogDaoImpl"
				+ "#setDataSource with result : [" + "void" + "]");
	}
	
	public String getSql(String key)
	{
		return this.SQLResourceBundle.getString(key);
	}
}
